package jjn.acwing.java_basic;

import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/18 14:53
 */
public class Acwing670 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String first = scanner.next();
        String second = scanner.next();
        String third = scanner.next();
        if ("vertebrado".equals(first)) {
            if ("ave".equals(second)) {
                if ("carnivoro".equals(third)) {
                    System.out.println("aguia");
                }
                if ("onivoro".equals(third)) {
                    System.out.println("pomba");
                }
            }
            if ("mamifero".equals(second)) {
                if ("onivoro".equals(third)) {
                    System.out.println("homem");
                }
                if ("herbivoro".equals(third)) {
                    System.out.println("vaca");
                }
            }
        }
        if ("invertebrado".equals(first)) {
            if ("inseto".equals(second)) {
                if ("hematofago".equals(third)) {
                    System.out.println("pulga");
                }
                if ("herbivoro".equals(third)) {
                    System.out.println("lagarta");
                }
            }
            if ("anelideo".equals(second)) {
                if ("hematofago".equals(third)) {
                    System.out.println("sanguessuga");
                }
                if ("onivoro".equals(third)) {
                    System.out.println("minhoca");
                }
            }
        }
    }
}
